/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
    A test that test numeric class
    @author Loc Phan
    @version 1.01 2008-11-20
*/
package edu.sjsu.cs.phan;

import junit.framework.TestCase;

public class NumericTester extends TestCase
{
   int x = 2;
   int n1 = 1;
   int n2 = 2;
   int n3 = -1;

   public void testIntPowerodd()
   {
      assertEquals(1.0, Numeric.intPower(x, n1));
   }
   public void testIntPowereven()
   {
      assertEquals(4.0, Numeric.intPower(x, n2));
   }
   public void testIntPowernegative()
   {
      assertEquals(0.5, Numeric.intPower(x, n3));
   }

}
